package com.xiyu.service.enums.material.stock;

import com.xiyu.service.enums.material.order.MaterialTransferStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 物资入库单来源单据类型
*/
@Getter
@AllArgsConstructor
public enum MaterialStockInSourceTypeEnum implements IntArrayValuable {

    /**
    * 采购
    */
    PURCHASE(1, "采购"),
    /**
    * 调拨
    */
    TRANSFER(2, "调拨"),
    /**
    * 盘点
    */
    INVENTORY(3, "盘点"),
    /**
    * 未知
    */
    UNKNOWN(4, "未知");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(MaterialStockInSourceTypeEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(MaterialStockInSourceTypeEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
